package com.shmilyou.dissertationmanagement.repository;
/* Created with 岂止是一丝涟漪     530060499@qq.com    2019/1/17 */

import com.shmilyou.dissertationmanagement.domain.SoftwareCopyright;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SoftwareCopyrightRepository extends JpaRepository<SoftwareCopyright, Integer> {

    List<SoftwareCopyright> findAllByName(String name);

    List<SoftwareCopyright> findAllByDel(int del);

    Page<SoftwareCopyright> findAllByDel(Pageable page, int del);

    int countByDel(int del);
}
